<?php
  /**
   * @author claudiugh
   */

// Metrou 
$retea_metrou = new PT_Network('Metrou');

$m1_stations = array('Dristor 1' => new PT_MapPoint(44.41936, 26.140487),
                     'Piata Muncii' => new PT_MapPoint(44.432202, 26.138449),
                     'Iancului' => new PT_MapPoint(44.440785, 26.133857),
                     'Obor' => new PT_MapPoint(44.449538,26.124686),
                     'Stefan cel Mare' => new PT_MapPoint(44.452994, 26.09961),
                     'Piata Victoriei 2' => new PT_MapPoint(44.45304, 26.086221),
                     'Gara de Nord' => new PT_MapPoint(44.445769,26.074818),
                     'Basarab 1' => new PT_MapPoint(44.450518,26.068982),
                     'Crangasi' => new PT_MapPoint(44.452336, 26.047082),
                     'Semanatoarea' => new PT_MapPoint(44.445355,26.047224),
                     'Grozavesti' => new PT_MapPoint(44.443053, 26.059935),
                     'Eroilor' => new PT_MapPoint(44.434386,26.076964),
                     'Izvor' => new PT_MapPoint(44.433053,26.090354),
                     'Piata Unirii 1' => new PT_MapPoint(44.427654, 26.103794),
                     'Timpuri Noi' => new PT_MapPoint(44.416544, 26.113676),
                     'Mihai Bravu' => new PT_MapPoint(44.412359, 26.128009),
                     'Dristor 2' => new PT_MapPoint(44.419371, 26.140519)
                     );

$m1_arcs =  array(new PT_Arc('Dristor 1', 'Piata Muncii', 1, PT_BIDIR),
                  new PT_Arc('Piata Muncii','Iancului', 1, PT_BIDIR),
                  new PT_Arc('Iancului','Obor', 1, PT_BIDIR),
                  new PT_Arc('Obor','Stefan cel Mare', 1, PT_BIDIR),
                  new PT_Arc('Stefan cel Mare','Piata Victoriei 2', 1, PT_BIDIR),
                  new PT_Arc('Piata Victoriei 2','Gara de Nord', 1, PT_BIDIR),
                  new PT_Arc('Gara de Nord','Basarab 1', 1, PT_BIDIR),
                  new PT_Arc('Basarab 1','Crangasi', 1, PT_BIDIR),
                  new PT_Arc('Crangasi','Semanatoarea', 1, PT_BIDIR),
                  new PT_Arc('Semanatoarea','Grozavesti', 1, PT_BIDIR),
                  new PT_Arc('Grozavesti','Eroilor', 1, PT_BIDIR),
                  new PT_Arc('Eroilor','Izvor', 1, PT_BIDIR),
                  new PT_Arc('Izvor','Piata Unirii 1', 1, PT_BIDIR),
                  new PT_Arc('Piata Unirii 1','Timpuri Noi', 1, PT_BIDIR),
                  new PT_Arc('Timpuri Noi','Mihai Bravu', 1, PT_BIDIR),
                  new PT_Arc('Mihai Bravu', 'Dristor 2', 1, PT_BIDIR),
                   );

$m1_line = new PT_Line('M1');
$m1_line->add_stations($m1_stations);
$m1_line->add_arcs($m1_arcs);
$retea_metrou->add_line($m1_line);

$m2_stations = array('Pipera' => new PT_MapPoint(44.480899, 26.116025),
                     'Aurel Vlaicu' => new PT_MapPoint(44.47946, 26.100018),
                     'Aviatorilor' => new PT_MapPoint(44.467425, 26.08665),
                     'Piata Victoriei 1' => new PT_MapPoint(44.453029, 26.086199),
                     'Romana' => new PT_MapPoint(44.446396, 26.096928),
                     'Universitate' => new PT_MapPoint(44.435427, 26.102743),
                     'Piata Unirii 2' => new PT_MapPoint(44.427643,26.103859),
                     'Tineretului' => new PT_MapPoint(44.414909,26.10443),
                     'Eroii Revolutiei' => new PT_MapPoint(44.404576, 26.096413),                
                     'Constantin Brancoveanu' => new PT_MapPoint(44.398214, 26.109738),
                     'Piata Sudului' => new PT_MapPoint(44.392419, 26.12287),
                     'Aparatorii Patriei' => new PT_MapPoint(44.380166, 26.135251),
                     'IMGB' => new PT_MapPoint(44.369109,26.142775),
                     );

$m2_arcs = array(new PT_Arc('Pipera', 'Aurel Vlaicu', 1, PT_BIDIR),
                 new PT_Arc('Aurel Vlaicu', 'Aviatorilor', 1, PT_BIDIR),
                 new PT_Arc('Aviatorilor', 'Piata Victoriei 1', 1, PT_BIDIR),
                 new PT_Arc('Piata Victoriei 1', 'Romana', 1, PT_BIDIR),
                 new PT_Arc('Romana', 'Universitate', 1, PT_BIDIR),
                 new PT_Arc('Universitate', 'Piata Unirii 2', 1, PT_BIDIR),
                 new PT_Arc('Piata Unirii 2', 'Tineretului', 1, PT_BIDIR),
                 new PT_Arc('Tineretului', 'Eroii Revolutiei', 1, PT_BIDIR),
                 new PT_Arc('Eroii Revolutiei', 'Constantin Brancoveanu', 1, PT_BIDIR),
                 new PT_Arc('Constantin Brancoveanu', 'Piata Sudului', 1, PT_BIDIR),
                 new PT_Arc('Piata Sudului', 'Aparatorii Patriei', 1, PT_BIDIR),
                 new PT_Arc('Aparatorii Patriei', 'IMGB', 1, PT_BIDIR)
                 );


$m2_line = new PT_Line('M2');
$m2_line->add_stations($m2_stations);
$m2_line->add_arcs($m2_arcs);
$retea_metrou->add_line($m2_line);		 


// Tramvai

$retea_tramvai = new PT_Network('Tramvai');

$statii_41 = array('Ghencea' => new PT_MapPoint(44.414356,26.035122),
		   '41_2' => new PT_MapPoint(44.422265,26.034521),
		   '41_3' => new PT_MapPoint(44.427536,26.033105),
		   '41_4' => new PT_MapPoint(44.438936,26.035336),
		   '41_5' => new PT_MapPoint(44.445095,26.037482),
		   'Crangasi' => new PT_MapPoint(44.452386,26.047009),
		   '41_7' => new PT_MapPoint(44.462127,26.072072),
		   'Piata Presei Libere' => new PT_MapPoint(44.466936,26.077436),
		   );

$arce_41 = array(new PT_Arc('Ghencea','41_2', 1, PT_BIDIR),
		 new PT_Arc('41_2','41_3', 1, PT_BIDIR),
		 new PT_Arc('41_3','41_4', 1, PT_BIDIR),
		 new PT_Arc('41_4','41_5', 1, PT_BIDIR),
		 new PT_Arc('41_5','Crangasi', 1, PT_BIDIR),
		 new PT_Arc('Crangasi','41_7', 1, PT_BIDIR),
		 new PT_Arc('41_7', 'Piata Presei Libere', 1, PT_BIDIR),
		 );

$linia_41 = new PT_Line('41');
$linia_41->add_stations($statii_41);
$linia_41->add_arcs($arce_41);
$retea_tramvai->add_line($linia_41);

?>